
            <h1>
              更新团购信息 
            </h1>
            <h4>
                <a href="<?php echo site_url('groupadmin/grouplist');?>">返回团购列表</a>
            </h4>
            
            <?php
                if($result != "")
                    echo "<h2>";
                    echo $result;
                    echo "</h2>";
            ?>
          </div>
              
              <?php

                echo form_open_multipart('groupadmin/updategroup?group_id=' . $group['group_id']);

                echo "<br/>";
                echo form_label('团购名称：','group_name');
                echo form_input('group_name', $group['group_name']);
                echo "<br/><br/>";

                echo form_label('单价（元）：','group_price');
                echo form_input('group_price', $group['group_price']);
                echo "<br/><br/>";

                // echo form_label('打印机IMEI号码','store_printer_IMEI');
                // echo "<br/>";
                // echo form_input('store_printer_IMEI',$store[0]['store_printer_IMEI']);
                // echo "<br/>";

                echo form_label('团购LOGO：','group_logo');
                //echo "<br/>";

                ?>
                <img src="<?php echo base_url($group['logo_pic']);?>" width="200" />
                <?php
                echo form_upload('group_logo', '修改LOGO');
                echo "<br/><br/>";
                echo form_label('简要介绍：','brief_des');
                echo form_textarea('brief_des', $group['brief_des']);
                echo "<br/><br/>";

                echo form_label('详细介绍：','detail_des');
                echo form_textarea('detail_des', $group['detail_des']);
                echo "<br/><br/>";

                echo form_label('使用说明：','use_guide');
                echo form_textarea('use_guide', $group['use_guide']);
                echo "<br/><br/>";

                echo form_label('购买截止时间：','buy_deadline');
                echo form_input('buy_deadline', $group['buy_deadline']);
                echo "<br/><br/>";

                echo form_label('使用截止时间（不早于"购买截止时间"）：','use_deadline');
                echo form_input('use_deadline', $group['use_deadline']);
                echo "<br/><br/>";

                echo form_label('限购数量：','group_capacity');
                echo form_input('group_capacity', $group['group_capacity']);
                echo "<br/><br/>";

                echo form_label('限购人数：','user_capacity');
                echo form_input('user_capacity', $group['user_capacity']);
                echo "<br/><br/>";

                echo form_label('每人每次限购数量：','per_user_num');
                echo form_input('per_user_num', $group['per_user_num']);
                echo "<br/><br/>";

                echo form_label('每人限购总量（不小于"每人每次限购数量"）：','per_user_capacity');
                echo form_input('per_user_capacity', $group['per_user_capacity']);
                echo "<br/><br/>";

                echo form_label('商家名称：','store_name');
                echo form_input('store_name', $group['store_name']);
                echo "<br/><br/>";

                echo form_label('商家电话：','store_phone');
                echo form_input('store_phone', $group['store_phone']);
                echo "<br/><br/>";

                echo form_label('商家地址：','store_addr');
                echo form_input('store_addr', $group['store_addr']);
                echo "<br/><br/>";

                echo form_label('第三方KEY：','3rdKey');
                echo form_input('3rdKey', $group['store_key']);
                echo "<br/><br/>";

                if($command == null)
                {
                    echo form_submit('submit', '更新团购');
                    echo "      <a href=" . site_url('groupadmin/grouplist') . ">取消更新</a>";
                }
                
                echo form_close();
                echo "<br/><br/>";
               ?>
          
